package com.train.JUC;

public class Ticket {
    // 票号码
    private String no;
    // 座位
    private String seat;
    // 售价
    private Double price;

    public Ticket(String no, String seat, Double price) {
        setNo(no);
        setSeat(seat);
        setPrice(price);
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getSeat() {
        return seat;
    }

    public void setSeat(String seat) {
        this.seat = seat;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
